<?php if (!defined('THINK_PATH')) exit();?>

<!-- BEGIN nav -->



 
 <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"> 详情</h4>
      </div>
 
		      <div class="modal-body">
		<!-- begin tab -->
	  
<div class="panel panel-default" >
  <div class="panel-heading">基本信息</div>
  <div class="panel-body">
  <div class="row">
   <div class="col-md-6">
   <p>订单号：<?php echo ($odetail["oid"]); ?></p>
<p>下单人：<?php echo ($odetail["oid"]); ?></p>
<p>店铺名：<?php echo ($odetail["oid"]); ?></p>

<p>创建时间：<?php echo (date("Y-m-d H:i",$odetail["order_ctime"])); ?></p>
<p>完成时间：<?php if(empty($odetail["order_endtime"])): else: ?> <?php echo (date("Y-m-d H:i",$odetail["order_endtime"])); endif; ?></p>
</div>	
	
<div class="col-md-6">	
	 <p>收货人：<?php echo ($odetail["oman"]); ?></p>
	<p>收货手机号：<?php echo ($odetail["otel"]); ?></p>
	<p>收货地址：<?php echo ($odetail["oaddress"]); ?></p>
	<p>收货备注：<?php echo ($odetail["morecontent"]); ?></p>
	
	</div>	
	
	</div>

	<hr>
																		<?php switch($odetail["orderstatus"]): case "0": ?><a class="btn btn-primary btn-lg" href="<?php echo U('Order/orderone/','id='.$oid);?>" >确认</a> <a class="btn btn-default btn-lg" href="<?php echo U('Order/ordersix/','id='.$oid);?>" >无效</a><?php break;?>
<?php case "1": ?><a class="btn btn-primary btn-lg" href="<?php echo U('Order/ordertwo/','id='.$oid);?>" >出单</a><?php break;?>
<?php case "2": ?><a class="btn btn-primary btn-lg" href="<?php echo U('Order/orderthree/','id='.$oid);?>" >送货</a><?php break;?>
<?php case "3": ?><a class="btn btn-primary btn-lg" href="<?php echo U('Order/orderfour/','id='.$oid);?>" >完成</a><?php break;?>
<?php case "4": break;?>
<?php case "5": break;?>
<?php case "6": break;?>
<?php default: ?>默认情况<?php endswitch;?>
	</div>									
 
</div>

<div class="panel panel-default">
  <div class="panel-heading">订单明细  　　　订单数量：<?php echo ($odetail["ordercount"]); ?>　订单金额：<?php echo ($odetail["orderprice"]); ?></div>
  <div class="panel-body">
  

<table class="table table-bordered">

   
  <tbody>
            <tr>
              <td>名称</td>
              <td>单价</td>
              <td>数量</td>
              <td>总额</td>
              
            </tr>
          <?php if(is_array($orderextlist)): $i = 0; $__LIST__ = $orderextlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
              <td> <?php echo ($vo["fname"]); ?></td>
              <td><?php echo ($vo["fprice"]); ?></td>
              <td><?php echo ($vo["fcount"]); ?></td>
              <td><?php echo ($vo["prices"]); ?></td>
              
            </tr><?php endforeach; endif; else: echo "" ;endif; ?> 
		   
		   
		   
		   
          </tbody> 
 
</table> 
   
  </div>
</div>







        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        
      </div>